package com.fuxin.security.test.dao;

import com.fuxin.security.test.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

/**
 * description:
 *
 * @author fuxin
 * @date 2020/2/28 8:03 下午
 */
public interface UserMapper extends JpaRepository<User, Long> {

    @Query("from User where username = :userName ")
    User loadUserByUsername(String userName);
}
